package com.mpyy.service.inventory;

import com.mpyy.dao.inventory.AlarmInventoryMapperDaoInter;
import com.mpyy.pojo.InventoryDesc;
import com.mpyy.pojo.ProductInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "alarmInventoryMapperServiceImpl")
public class AlarmInventoryMapperServiceImpl implements AlarmInventoryMapperServiceInter {
    @Autowired
    @Qualifier(value = "alarmInventoryMapperDaoInter")
    private AlarmInventoryMapperDaoInter alarmInventoryMapperDaoInter;

    /*报警商品查询*/
    @Override
    public List<InventoryDesc> searchAlarmCommodity() {
        List<InventoryDesc> inventoryDescs = alarmInventoryMapperDaoInter.searchAlarmCommodity();
        return inventoryDescs;
    }

    /*修改商品的库存下限*/
    @Override
    public int updateProductInfoproStockLower(ProductInfo productInfo) {
        return alarmInventoryMapperDaoInter.updateProductInfoproStockLower(productInfo);
    }
}
